home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmListReplacePositions.z
/
XmListReplacePositions
Wrap
Text File
|
1998-10-30
|
4KB
|
67 lines
XXXXmmmmLLLLiiiissssttttRRRReeeeppppllllaaaacccceeeePPPPoooossssiiiittttiiiioooonnnnssss((((3333XXXX))))UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVVXXXXmmmmLLLLiiiissssttttRRRReeeeppppllllaaaacccceeeePPPPoooossssiiiittttiiiioooonnnnssss((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmLLLLiiiissssttttRRRReeeeppppllllaaaacccceeeePPPPoooossssiiiittttiiiioooonnnnssss - A List function that replaces items
in a list based on position
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/List.h>
vvvvooooiiiidddd XXXXmmmmLLLLiiiissssttttRRRReeeeppppllllaaaacccceeeePPPPoooossssiiiittttiiiioooonnnnssss(
WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
iiiinnnntttt ****ppppoooossssiiiittttiiiioooonnnn____lllliiiisssstttt,
XXXXmmmmSSSSttttrrrriiiinnnngggg ****iiiitttteeeemmmm____lllliiiisssstttt,
iiiinnnntttt iiiitttteeeemmmm____ccccoooouuuunnnntttt;;;;);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmLLLLiiiissssttttRRRReeeeppppllllaaaacccceeeePPPPoooossssiiiittttiiiioooonnnnssss replaces noncontiguous items in a
list. The item at each position specified in _p_o_s_i_t_i_o_n__l_i_s_tis
replaced with the corresponding entry in _i_t_e_m__l_i_s_t. When
the items are inserted into the list, they are compared with
the current XXXXmmmmNNNNsssseeeelllleeeecccctttteeeeddddIIIItttteeeemmmmssss list. Any of the new items that
match items on the selected list appear selected. A warning
message is displayed if a specified position is invalid;
that is, the value is 0 (zero), a negative integer, or a
number greater than the number of items in the list.
_w_i_d_g_e_t Specifies the ID of the List widget.
_p_o_s_i_t_i_o_n__l_i_s_t
Specifies an array of the positions of items to be
replaced. The position of the first item in the
list is 1; the position of the second item is 2;
and so on.
_i_t_e_m__l_i_s_t Specifies an array of the replacement items.
_i_t_e_m__c_o_u_n_t
Specifies the number of elements in _p_o_s_i_t_i_o_n__l_i_s_t
and _i_t_e_m__l_i_s_t. This number must be nonnegative.
For a complete definition of List and its associated
resources, see XXXXmmmmLLLLiiiisssstttt(3).
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmLLLLiiiisssstttt(3).
Page 1 (printed 10/24/98)